package com.springboot.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.base.common.BusinessException;
import com.springboot.base.model.User;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2020-07-15
 */
public interface IUserService extends IService<User> {
    User qryById(Integer id);

    User register(User registerUser) throws UnsupportedEncodingException, NoSuchAlgorithmException, BusinessException;

    User login(User user) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    Integer countAllUser();
}
